#! /bin/bash

if [ $# != 1  ]; then
   echo Useage:
   echo $0 filename
   echo
   echo Returns the cost of a program for the purposes of evaluation
   echo with ECE540s assignment 3.
   exit
fi

spixcounts -- ./$1 > /dev/null
spixstats -b $1.1.bb ./$1 | ./getinfo
